package com.bluesky.plum.domain.northwind;

import java.io.Serializable;
import java.math.BigDecimal;

import com.bluesky.plum.domain.repository.Entity;

public class OrderDetail implements Entity,Serializable{
	private Integer id;
	private Order order;
	private Product product;
	private BigDecimal unitPrice;
	private Integer quantity;
	private BigDecimal discount;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public BigDecimal getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(BigDecimal unitPrice) {
		this.unitPrice = unitPrice;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}
	@Override
	public String toString() {
		
		return String.format("%s %s", product,quantity);
	}
}
